<?php
class Merchant_Service_ProductOptionValue
{

    public function __construct(){
		
	}

	public function getByProductId($productId,$poId = null){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->getByProductId($productId,$poId)->toArray();
	}
	
	public static function getByPovId($pov_id){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->getByPovId($pov_id);
	}
	
	public function getByCondition($p_id,$po_id,$poc_id){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->getByCondition($p_id,$po_id,$poc_id);
	}
	public function add($row){
		$row['pov_add_time'] = date("Y-m-d H:i:s");
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->add($row);
	}
	
	public function deleteByCondition($p_id,$po_id,$poc_id){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->deleteByCondition($p_id,$po_id,$poc_id);
	}
	
	public function delete($productId){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->delete($productId);
	}
	
	public function modifyByCondition($row,$p_id,$poc_id,$po_id){
		$povObj = new Merchant_Model_ProductOptionValue();
		return $povObj->modifyByCondition($row,$p_id,$poc_id,$po_id);
	}
	

}